blob: e09cc3069e720a8e90b1681ee8b1daa80ae9f290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---
// 旧URL(/kodaira-data/events/2026-11/ など)から新しいURLへの転送。
// 本番のApacheは public/.htaccess が301で返す。astro dev / preview では
// .htaccess が効かないため、ここで同じ転送を用意しておく。
import { fiscalYearKeys, monthKeys } from '@/lib/schedule-months';
export function getStaticPaths() {
return [...monthKeys, ...fiscalYearKeys].map((path) => ({ params: { path } }));
}
const { path } = Astro.params;
return Astro.redirect(`/kodaira/events/${path}/`, 301);
---
|